<?php
include("include/cfg_login.php");
include("include/functions.php");
	if(@$_POST['comentarii']){
		$idEveniment = mysql_real_escape_string($_POST['idEveniment']);
		$res = mysql_query("select * from feedback where id_eveniment = '$idEveniment' and  comentariu !='' order by data_raspuns asc");
		$arr = array();
		while($row = mysql_fetch_array($res)){
			$arr[] = $row;
		}
		
		if(count($arr) > 0){
				echo json_encode($arr);
		}
		
	}

?>